package com.fzb.zrlog.simple.dao.impl;

import com.fzb.common.dao.impl.DAO;
import com.fzb.zrlog.simple.dao.api.ITagDAO;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Tag extends DAO implements ITagDAO {

    public Tag() {
        tableName = "tag";
        pk = "tagId";
    }

    @Override
    public List<Map<String, Object>> queryAll() {
        try {
            return queryList(ALL);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return new ArrayList<>();
    }

    @Override
    public boolean update(String nowTagStr, String oldTagStr) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public boolean insertTag(String now) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public boolean insertTag(Set<String> now) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public boolean deleteTag(String old) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public boolean deleteTag(Set<String> old) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public void refreshTag() {
        // TODO Auto-generated method stub

    }

    @Override
    public Map<String, Object> queryAll(Integer page, Integer pageSize) {
        // TODO Auto-generated method stub
        return null;
    }

}
